package com.cxhc.app.api;

import com.cxhc.common.core.controller.BaseController;
import com.cxhc.common.core.domain.R;
import com.cxhc.system.service.app.ISysOrganization;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 事项报备审批
 */
@RestController
@RequestMapping("/api/sysOrganization")
public class ApiSysOrganization extends BaseController {

    @Resource
    private ISysOrganization sysOrganization;

    /**
     * 列表
     *
     * @return
     */
    @GetMapping("/list")
    public R<List<Map<String,String>>> selectList() {
        return R.ok(sysOrganization.selectOrgList());
    }


}
